package com.shycloud.mido.homework.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shycloud.mido.homework.api.entity.ZebraHomeworkAssist;
import com.shycloud.mido.homework.api.vo.ZebraHomeworkAssistVO;

public interface ZebraHomeworkAssistService extends IService<ZebraHomeworkAssist> {

	/**
	 * 保存作业辅导
	 *
	 * @param assist
	 * @return java.lang.Boolean
	 * @author nianhua.jiang
	 * @date 2021/1/5 9:38
	 **/
	String saveAssist(ZebraHomeworkAssist assist);

	/**
	 * 删除作业辅导
	 *
	 * @param assistId
	 * @return java.lang.Boolean
	 * @author nianhua.jiang
	 * @date 2021/1/5 9:38
	 **/
	@Transactional(rollbackFor = Exception.class, timeout = 36000)
	Boolean delAssist(String assistId);

	/**
	 * 获取教师辅导情况
	 *
	 * @param homeworkId
	 * @return java.util.List<com.shycloud.mido.homework.api.entity.ZebraHomeworkAssist>
	 * @author nianhua.jiang
	 * @date 2021/1/5 9:36
	 **/
	List<ZebraHomeworkAssistVO> getAssist(String homeworkId);
}
